﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml.Controls;

namespace FileBrowser.Model
{
    public class File : IData
    {
        public File()
        {
            base.Width = 220;
            base.Height = 110;
            //graphicalRepresentation = new Grid();
        }
        public string Extension { get; set; }

        public string content { set; get; }

        public Folder Parent { get; set; }

        protected override async void setName(string name)
        {
            //Debug.WriteLine(name);
            DataIcon = await IDataUtils.getIconFromFile(name);
        }

        public override List<IData> getItems()
        {
            return null;
        }
        
        public override IData.Type getType()
        {
            return IData.Type.File;
        }

    }
}
